package com.zyh.service.impl;

import com.zyh.entity.User;
import com.zyh.entity.UserVO;
import com.zyh.mapper.Usermapper;
import com.zyh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;



@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private Usermapper usermapper;

    @Override
    public User selectUserBypwd(User user) {
        return usermapper.selectUserBypwd(user);
    }

    @Override
    public List<User> getAllUser(UserVO userVO) {
        return usermapper.getAllUser(userVO);
    }

    @Override
    public User selectUser(Integer id) {
        return usermapper.selectUser(id);
    }


    @Override
    public Integer updateUserWithId(User user) {
        return usermapper.updateUserWithId(user);
    }

    @Override
    public Integer addUser(User user) {
        return usermapper.addUser(user);
    }

    @Override
    public Integer getUserCount(UserVO userVO) {
        return usermapper.getUserCount(userVO);
    }

    @Override
    public Integer DeleteUserByids(Integer[] id) {
        return usermapper.DeleteUserByids(id);
    }

    @Override
    public Integer updateenable(User user) {
        return usermapper.updateenable(user);
    }

    @Override
    public Integer updatemyself(User user) {
        return usermapper.updatemyself(user);
    }

    @Override
    public Integer updatephotos(User user) {
        return usermapper.updatephotos(user);
    }

    public Object getProvince(){
        return usermapper.getProvince();
    }
    public  Object getCity(String code)
    {
        return usermapper.getCity(code);
    }
    public  Object getArea(String code)
    {
        return usermapper.getArea(code);
    }
//
}
